-- GENERATED SPELL FOR [Razormane Defender] --


function spell0_3266(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_3266', 592, 1)
end

function spell1_3266(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_3266', 30317, 1)
end

function spell2_3266(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3266', 619, 1)
end

function Sorts_3266(pUnit, Event)
local choix_sorts_3266 = math.random(0, 2)
if choix_sorts_3266 == 0 then
pUnit:RegisterEvent('spell0_3266', 1, 1)
end
if choix_sorts_3266 == 1 then
pUnit:RegisterEvent('spell1_3266', 1, 1)
end
if choix_sorts_3266 == 2 then
pUnit:RegisterEvent('spell2_3266', 1, 1)
end
end

function mob3266_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3266', math.random(1500, 3000), 1)
end

function mob3266_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3266_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3266_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3266, 1, 'mob3266_Action')
RegisterUnitEvent(3266, 2, 'mob3266_Leave')
RegisterUnitEvent(3266, 3, 'mob3266_Kill')
RegisterUnitEvent(3266, 4, 'mob3266_Die')
